package com.sql.weeego.bean.base;

/**
 * UchomePokeId entity. @author MyEclipse Persistence Tools
 */

public class UchomePokeId implements java.io.Serializable {

	// Fields

	private Integer uid;
	private Integer fromuid;

	// Constructors

	/** default constructor */
	public UchomePokeId() {
	}

	/** full constructor */
	public UchomePokeId(Integer uid, Integer fromuid) {
		this.uid = uid;
		this.fromuid = fromuid;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getFromuid() {
		return this.fromuid;
	}

	public void setFromuid(Integer fromuid) {
		this.fromuid = fromuid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UchomePokeId))
			return false;
		UchomePokeId castOther = (UchomePokeId) other;

		return ((this.getUid() == castOther.getUid()) || (this.getUid() != null
				&& castOther.getUid() != null && this.getUid().equals(
				castOther.getUid())))
				&& ((this.getFromuid() == castOther.getFromuid()) || (this
						.getFromuid() != null
						&& castOther.getFromuid() != null && this.getFromuid()
						.equals(castOther.getFromuid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getFromuid() == null ? 0 : this.getFromuid().hashCode());
		return result;
	}

}